package com.yxinsur.imc.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseEntity;

/**
 * 地区对象 imc_region
 * 
 * @author imc
 * @date 2021-03-23
 */
public class ImcRegion extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private String id;

    @Excel(name = "名称")
    private String regionName;

    /** $column.columnComment */
    @Excel(name = "上一级ID")
    private Long parentAreaId;
    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private String isDeleted;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setParentAreaId(Long parentAreaId) 
    {
        this.parentAreaId = parentAreaId;
    }

    public Long getParentAreaId() 
    {
        return parentAreaId;
    }
    public void setIsDeleted(String isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("regionName", getRegionName())
            .append("parentAreaId", getParentAreaId())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
